<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
		<div class="col-md-6">
            <div class="form-group">
              <label>父级分类</label>
              <span class="">（上级分类）</span>
                <select name="pid" class="form-control">
					<option value="0" >顶级分类</option>
                    {volist name='cat_list' id='vo'}
                        <option value="{$vo['id']}" {notempty name="info['pid']"}{if condition="$info['pid'] eq $vo['id']"} selected="selected" {/if}{/notempty} >{$vo['title']}</option>
                        {volist name='vo.catlist' id='v'}
                        <option value="{$v['id']}" {notempty name="info['pid']"}{if condition="$info['pid'] eq $v['id']"} selected="selected" {/if}{/notempty} >----{$v['title']}</option>
                        {/volist}
                    {/volist}
                </select>
            </div>
          </div>
          <div class="col-md-6">
            <div class="form-group">
              <label>分类名称</label>
              <span>（商品分类名称）</span>
              <input class="form-control" name="title" placeholder="请输入商品分类名称" value="{$info['title']|default=''}" type="text">
            </div>
          </div>
            
          <div class="col-md-6">
            <div class="form-group">
              <label>图标</label>
              <span>（文章分类图标）</span>
                {assign name="img_id" value="$info.img_id|default='0'" /}
                {:widget('file/index', ['name' => 'img_id', 'value' => $img_id, 'type' => 'img'])}
            </div>
          </div>
            
		  <div class="col-md-6">
            <div class="form-group">
              <label>排序</label>
              <span class=""></span>
              <input class="form-control" name="sort" placeholder="请输入排序" value="{$info['sort']|default='0'}" type="text">
            </div>
          </div>
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
        
      </div>
        
      </div>

</form>